<template>
	<div class="category-container">
		<!-- dataType 0：用户协议；1：隐私政策 -->
		<agreementTable :dataType="0" @openAdd="openAdd" :role="'site'"></agreementTable>

		<!-- <add :isAdd="isAdd" :dialogVisible="addVisible" :row="clickItem" @handleClose="addClose" :dataType="0" :platType="platType"></add> -->
	</div>
</template>

<script setup lang="ts" name="role">
import { onMounted, reactive, ref } from 'vue';
import { ElMessage, ElMessageBox } from 'element-plus';
import { NextLoading } from '/@/utils/loading';

// import add from './dialog/add.vue';
import agreementTable from '../../components/table.vue';

const isAdd = ref(false);
const addVisible = ref(false);
const clickItem = ref({});
const platType = ref(0);

// 页面加载时
onMounted(() => {
	NextLoading.done();
});
</script>

<style scoped lang="scss">
@import url('/@/theme/page/page.scss');
</style>
